<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>立方体</title>
    <style>
        .lft {
            margin: 0 auto;
            width: 200px;
            height: 200px;
            position: relative;
            transform: rotate(45deg);
            transform-style: preserve-3d;
            animation: 10s spin linear infinite;
            transition: transform 1s linear;
            margin-top: 200px;
        }

        .lft>div {
            width: 200px;
            height: 200px;
            position: absolute;
            border: 5px solid #f5eff3;
            background-image: url(./stay.png) ;filter: hue-rotate(0deg);
            
        }

        @keyframes spin {
            0% {
                transform: rotateX(0deg) rotateY(0deg);
            }

            100% {
                transform: rotateX(360deg) rotateY(360deg);
            }
        }

        .lft>div:nth-child(1) {
            transform: translateZ(-100px);
            transition: transform 1s linear;
        }

        .lft>div:nth-child(2) {
            transform: rotateY(-90deg) translateZ(100px);
            transition: transform 1s linear;
        }

        .lft>div:nth-child(3) {
            transform: rotateY(-90deg) translateZ(-100px);
            transition: transform 1s linear;
        }

        .lft>div:nth-child(4) {
            transform: rotateX(90deg) translateZ(100px);
            transition: transform 1s linear;
        }

        .lft>div:nth-child(5) {
            transform: rotateX(90deg) translateZ(-100px);
            transition: transform 1s linear;
        }

        .lft>div:nth-child(6) {
            transform: translateZ(100px);
        }
    </style>
    
</head>

<body>
    
    <div class="con">
        <div class="lft">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
  
</body>

</html>